package com.bw.service;

import com.bw.bean.Emp;
import com.bw.dao.EmpDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class EmpServiceImpl implements EmpService {

    @Autowired
    EmpDao dao;

    @Override
    public List<Emp> getList1() {
        return dao.getList1();
    }

    @Override
    public List<Emp> getList2(String name) {
        return dao.getList2(name);
    }

    @Override
    public List<Emp> getList3(String dname) {
        return dao.getList3(dname);
    }

    @Override
    public List<Emp> getList4(String sj1, String sj2) {
        return dao.getList4(sj1, sj2);
    }
}
